import { CmdConfPropsNameType } from '@common'

export type CmdConfFormItemShowType = Record<CmdConfPropsNameType, boolean>

const FormItemShowDir: CmdConfFormItemShowType = {
  type: true,
  parent: true,
  name: true,
  priority: true,
  cmd: false,
  icon: true,
  color: false,
  remark: true
}

const FormItemShowCmd: CmdConfFormItemShowType = {
  type: true,
  parent: true,
  name: true,
  priority: true,
  cmd: true,
  icon: true,
  color: true,
  remark: true
}

export const FormItemShow = {
  [CmdConfTypeConst.DIR]: FormItemShowDir,
  [CmdConfTypeConst.CMD]: FormItemShowCmd
}
